livepatch: Include sizes when an mismatch occurs
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 20 Jun 2017 14:55:12 +0000 (10:55 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 5 Oct 2017 13:27:32 +0000 (09:27 -0400)
commit7597fabca76e78aa8a6bf88db46692d162691234
tree3ea1e3d670f123cdb96ac7a205a01052fa03e4b5
parentc3f951417f8837e9e2061e592e9cce95bd09095b
livepatch: Include sizes when an mismatch occurs

If the .bug.frames.X or .livepatch.funcs sizes are different
than what the hypervisor expects - we fail the payload. To help
in diagnosing this include the expected and the payload
sizes.

Also make it more natural by having "Multiples" in the warning.

Also fix one case where we would fail if the size of the .ex_table
was being zero - but that is OK.

Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/livepatch.c
xen/include/xen/elfstructs.h